package classetc;

/**
 * @since Oct 13, 2017
 */
interface I {
    void print();
}

class C implements I {
    public void print() {
        System.out.println("Interface.C");
    }
}

public class Interface {
    public static void main(String[] args) {
        //[error]: 'Interface.I' is abstract; cannot be instantiated
        //Interface.I i = new Interface.I();

        I i = new C();
        //[out]: Interface.C
        i.print();

    }
}